package com.pkx.cloud.fse7.conf;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
@MapperScan("com.pkx.cloud.**.repo")
public class FsE7Config {
//    @Bean
//    public FilterRegistrationBean filterRegistrationBean() {
//        FilterRegistrationBean registrationBean = new FilterRegistrationBean();
//        Filter actionFilter = new MDCInsertingServletFilter();
//        registrationBean.setFilter(actionFilter);
//        List<String> urlPatterns = new ArrayList<>();
//        urlPatterns.add("/*");
//        registrationBean.setUrlPatterns(urlPatterns);
//        return registrationBean;
//    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
